View Single Post
Old 06-30-2013, 01:05 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,584
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Blunaigel View Post

Can I include a command to tell kindlegen to use the "-c2" format?
As HarryT has already correctly pointed out, you can simply add the -c2 switch after Kindlegen, however, since Kindlegen will run several optimization passes for each file, I wouldn't recommend using the -c2 switch in batch files.

Quote:
Originally Posted by Blunaigel View Post
EDIT: oh and how about batch-processing with kindlestrip?
Assuming that you have ActivePython (or another Python 2.7 build) installed and Kindlestrip.py is the same folder as the batch file, you could use the following very simple batch file:

Code:
DEL conversion.log
FOR %%f IN ("*.epub") DO  (
	kindlegen "%%f" >> conversion.log
	IF EXIST "%%~nf.mobi" (
		ECHO ******************************* >> conversion.log
		kindlestrip "%%~nf.mobi" "%%~nf.new" >> conversion.log
		IF EXIST "%%~nf.new" (	
			DEL "%%~nf.mobi"
			REN "%%~nf.new" "%%~nf.mobi"
		)
	) 
)
The batch file works with KindleGen 2.9 and Kindlestrip 1.35.
Doitsu is offline   Reply With Quote